package com.example.educationalsystem.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.example.educationalsystem.common.util.LocalDateConverter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author zpc
 * @since 2022-12-21
 */
@ColumnWidth(30)//注释在具体属性上,设置单独列。注释在类上,统一设置列宽
@HeadRowHeight(30)//设置表头行高
@ContentRowHeight(20)//统一设置数据行行高
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("classroom")
@ApiModel(value="Classroom对象", description="")
public class Classroom extends Model<Classroom> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "教室编号:d-205")
    @ExcelProperty(value = "教室编号", index = 1)
    @TableId("classroom_id")
    private String classroomId;

    @ApiModelProperty(value = "教室所在教学楼全称:第四教学楼")
    @ExcelProperty(value = "教学楼全称", index = 2)
    @TableField("classroom_ridgepole")
    private String classroomRidgepole;

    @ApiModelProperty(value = "教室能容纳的学生人数:50")
    @ExcelProperty(value = "教室容纳人数", index =3)
    @TableField("classroom_volume")
    private Integer classroomVolume;

    @ApiModelProperty(value = "教室类型: 多媒体教室")
    @ExcelProperty(value = "教室类型", index = 4)
    @TableField("classroom_type")
    private String classroomType;


    @Override
    protected Serializable pkVal() {
        return this.classroomId;
    }

}
